package com.ecnu.codelearn.javabean;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.NotBlank;

/**
 * @Author: 曹培胜
 * @Date: 2021/09/11/15:46
 * @Description:
 */
@Data
public class ParamDto {
    @NotBlank(message = "name不能为空")
    private String name;
    @NotNull(message = "age不能为空")
    private Integer age;
    @Pattern(regexp="^((13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(17[013678])|(18[0,5-9]))\\d{8}$",message="手机号不正确")
    private String phone;

}
